package com.qf.business.classes.listener;

import com.ken.event.action.apply.consumer.IKenEventHandler;
import com.ken.event.action.apply.consumer.KenEvent;
import com.ken.event.standard.entity.KenMessage;
import com.qf.data.student.entity.Student;

/**
 * 监听学生的新增事件
 *
 * author Ken
 * create_time 2022/11/15
 */
@KenEvent("stu_insert")
public class StuInsertEventHandler implements IKenEventHandler<Student> {
    @Override
    public void eventHandler(Student data, KenMessage kenMessage) {
        System.out.println("班级服务接收到学生新增的消息：" + data);
    }
}
